/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-12 19:54:26
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';
//  查询试驾取消信息
export const searchDriveCancel = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/testdrivecancel/queryTestDriveCancel`, { params });
//  试驾取消新增保存
export const addDriveCancel = params => axios.post(`${SERVER.CYXDMS_CLUE}/basedata/testdrivecancel/addTestDriveCancel`, params);
//  试驾取消编辑保存
export const editDriveCancel = params => axios.post(`${SERVER.CYXDMS_CLUE}/basedata/testdrivecancel/modifyTestDriveCancel`, params);
//  试驾取消跳转编辑页面
export const editQueryDriveCancelById = id => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/testdrivecancel/queryTestDriveCancel/${id}`, { id: Number(id) });
